package com.han.yuhannews.util;

import android.R.integer;

/*
 * 把String字符转换成Int类型
 * */
public class StringUtil {
	public static int String2Int(String string) {
		try {
			int value = Integer.valueOf(string);
			return value;
		} catch (Exception e) {
			return 0;
		}
	}
}
